import request from './request'

export function login(data: { username: string, password: string }): Promise<{ token: string, msg: string, role: string }> {
  return request({
    url: '/auth/login',
    method: 'post',
    data
  })
}
